﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace DAIVIETPROJECT
{
    class cls_daiviet
    {
        private string tendangnhap;
        public string _tendangnhap
        {
            get { return tendangnhap; }
            set { tendangnhap = value; }
        }

       
        public void ShowForm(string formname)
        {
           
           
        }
        public string getconnectstring()
        {
            string kq= "";
            XmlDocument MyDoc = new XmlDocument();

            MyDoc.Load("extension\\extension.xml");
            XmlNode root = (XmlNode)MyDoc.DocumentElement;

            for (int i = 0; i < root.ChildNodes.Count; i++)
            {
                XmlNode element = (XmlNode)root.ChildNodes[i];
                if (element.Name == "connection")
                {
                    kq = element.Attributes["connectionString"].Value.ToString();
                }
            }
            return kq;
       
        }
    }
}
